<!-- Featured News -->
<article class="featured-news ocean">
	<h2 class="head-title"><?php echo $text_featured; ?></h2>
	<?php
	foreach ($get_news_homes as $key => $get_news_home) {
	if($key==0){
	?>
	<div class="img-wrap">
		<img src="<?php echo base_url() . $get_news_home->url_gambar_news; ?>">
	</div>
	<div class="news-content">
		<header>
			<h1 class="title"><a href="<?php echo base_url(); ?>modul/news/view/<?php echo $get_news_home->id_news; ?>"><?php echo $get_news_home->judul_news; ?></a></h1>
		</header>
		<p><?php echo character_limiter($get_news_home->content_news, 250); ?></p>
		<span class="meta"><time class="date"><?php echo $get_news_home->date_update; ?></time></span>
	</div>
	<?php
	}
	}
	?>
</article>
<!-- [end] Featured News -->

<!-- Latest News -->
<div class="row">
	<?php
	foreach ($get_news_homes as $key => $get_news_home) {
	if($key!=0){
	?>
	<article class="news span-2 <?php if($key==1) echo 'green'; else if($key==2) echo 'orange'; else if($key==3) echo 'yellow'; ?>">
		<div class="news-content">
			<h2 class="head-title"><?php echo $text_news; ?></h2>
			<header>
				<h1 class="title"><a href="<?php echo base_url(); ?>modul/news/view/<?php echo $get_news_home->id_news; ?>"><?php echo $get_news_home->judul_news; ?></a></h1>
			</header>
			<span class="meta"><time class="date"><?php echo $get_news_home->date_update; ?></time></span>
		</div>
	</article>
	<?php
	}
	}
	?>
	<article class="news span-2">
		<div class="news-content">
			<header>
				<a href="<?php echo base_url()?>modul/news" class="blue"><?php echo $text_view_news; ?></a>
			</header>
		</div>
	</article>
</div>
					<!-- [end] Latest News -->